﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Configuration;
using System.Web.Mvc;
namespace DroidClaim.Web.Models
{
	public class SurveyorModel
	{
		
			    
					 
						[DisplayName("Id")]
						public int Id { get; set; }
									 
					 
						[Required]
						[StringLength(16, ErrorMessage = "SurveyerId cannot be longer than 16 characters.")]
						[DisplayName("SurveyerId")]
						public String SurveyerId { get; set; }
									 
					 
						[Required]
						[StringLength(16, ErrorMessage = "Username cannot be longer than 16 characters.")]
						[DisplayName("Username")]
						public String Username { get; set; }
									 
					  
						[StringLength(16, ErrorMessage = "Password cannot be longer than 16 characters.")]
						[DisplayName("Password")]
						public String Password { get; set; }
									 
					 
						[Required]
						[StringLength(64, ErrorMessage = "Salt cannot be longer than 64 characters.")]
						[DisplayName("Salt")]
						public String Salt { get; set; }
									 
					 
						[Required]
						[StringLength(64, ErrorMessage = "Name cannot be longer than 64 characters.")]
						[DisplayName("Name")]
						public String Name { get; set; }
									 
					  
						[StringLength(64, ErrorMessage = "Surname cannot be longer than 64 characters.")]
						[DisplayName("Surname")]
						public String Surname { get; set; }
									 
					  
						[StringLength(16, ErrorMessage = "Mobile cannot be longer than 16 characters.")]
						[DisplayName("Mobile")]
						public String Mobile { get; set; }
									 
					  
						[StringLength(65, ErrorMessage = "Email cannot be longer than 65 characters.")]
						[DisplayName("Email")]
						public String Email { get; set; }
									 
					  
						[StringLength(512, ErrorMessage = "PicturePath cannot be longer than 512 characters.")]
						[DisplayName("PicturePath")]
						public String PicturePath { get; set; }
									 
											[Required]
						[StringLength(255, ErrorMessage = "Code cannot be longer than 255 characters.")]
						[Remote("doesCodeExist", "Surveyor", HttpMethod = "POST", AdditionalFields = "Mode, OldValue", ErrorMessage = "Code already exists. Please enter a different Code")]
						[DisplayName("Code")]
						public String Code { get; set; }
									 
					 
						[Required]
						[Range(1, 1000000, ErrorMessage = "Please select SurveyorLocation")]
						[DisplayName("SurveyorLocation")]
						public int SurveyorLocation { get; set; }
						public string SurveyorLocationCode { get; set; }
						public string SurveyorLocationName { get; set; }
													public List<SurveyorModel> ListOfSurveyor { get; set; }
	}
}